package com.dubbo.client;

import dubbo.api.IDubboService;
import dubbo.api.Product;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

/**
 * @Author:RenPu
 * @Date: 2020/11/9 21:27
 * @Version: 1.0
 * @description:
 */
@Service   //此注解使用的是dubbo的自带的注解
@Slf4j
public class DubboService implements IDubboService {
    @Override
    public Product publish(Product product) {

        log.info("Publishing prod {}", product.getName());
        return product;
    }
}
